<script setup>
defineProps({
  logo: {
    type: String
  },
  name: {
    type: String
  },
  des: {
    type: String
  },
  job_num: {
    type: String
  },
  hr_num: {
    type: String
  }
})
</script>

<template>
  <div class="banner">
    <div class="banner-inner">
      <el-container>
        <el-main>
          <div class="info-primary">
            <img :src="logo" alt="" />
            <div class="info">
              <h1 class="name">{{ name }}</h1>
              <p>{{ des }}</p>
            </div>
          </div>
          <div class="brand">高新技术企业</div>
        </el-main>
        <el-aside>
          <div class="company-stat">
            <span>
              <a href="#">
                <b>{{ job_num }}</b>
                在招职位
              </a>
            </span>
            <span>
              <b>{{ hr_num }}</b>
              位Boss
            </span>
            <div class="op">
              <a href="">
                <i class="iconfont icon-file"></i>
                完善在线简历
              </a>
              <a href="">
                <i class="iconfont icon-attachment"></i>
                上传简历附件
              </a>
            </div>
          </div>
        </el-aside>
      </el-container>
    </div>
  </div>
</template>

<style lang="scss" scoped>
div {
  display: block;
}
p {
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
}
.banner {
  background-image: linear-gradient(90deg, #3b526a 0, #345a6d 100%);
  padding: 30px 0 16px 0;
  width: 100%;
  .banner-inner {
    width: 1200px;
    margin: 0 auto;
    color: #fff;
    .el-container {
      .el-main {
        padding: 0;
        .info-primary {
          img {
            width: 70px;
            height: 70px;
            border-radius: 12px;
            display: inline-block;
            vertical-align: middle;
            border: none;
          }
          .info {
            display: inline-block;
            margin-left: 24px;
            vertical-align: middle;
            font-size: 14px;
            h1 {
              font-size: 28px;
              font-weight: 600;
              color: #fff;
              line-height: 40px;
              padding: 0 0 3px 0;
            }
            p {
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
              -webkit-tap-highlight-color: transparent;
              -webkit-text-size-adjust: none;
            }
          }
        }
        .brand {
          margin: 16px 8px 0 0;
          padding: 0 8px;
          display: inline-block;
          color: #fff;
          height: 21px;
          line-height: 21px;
          background: rgba(34, 34, 34, 0.2);
          border-radius: 4px;
          font-size: 12px;
        }
      }
      .el-aside {
        .company-stat {
          text-align: left;
          margin-bottom: 42px;
          color: #fff;
          padding-top: 0;
          span {
            display: inline-block;
            vertical-align: middle;
            text-align: right;
            font-size: 15px;
            line-height: 21px;
            margin-left: 30px;
            width: auto;
            a {
              color: #fff;
              text-decoration: none;
            }
            b {
              display: inline-block;
              font-family: kanzhun-Regular, kanzhun;
              font-size: 46px;
              line-height: 55px;
              text-align: right;
              color: #fff;
              padding: 0;
              font-weight: 400;
              margin-right: 6px;
              vertical-align: sub;
            }
          }
          .op {
            display: flex;
            text-align: center;
            justify-content: space-between;
            overflow: hidden;
            margin-top: 25px;
            font-size: 16px;
            a {
              color: #00d1d0;
            }
          }
        }
      }
    }
  }
}
</style>
